# node

set -gx VOLTA_HOME "$HOME/.volta"
set -gx PATH "$VOLTA_HOME/bin" $PATH

# pnpm
set -gx PNPM_HOME "$HOME/.local/share/pnpm"
set -gx PATH "$PNPM_HOME" $PATH
# pnpm end

# Bun
# set -Ux BUN_INSTALL "$HOME/.bun"
# set -px --path PATH "$HOME/.bun/bin"
# # bun
# set --export BUN_INSTALL "$HOME/.bun"
# set --export PATH $BUN_INSTALL/bin $PATH
# $HOME/.config/fish/config.fish
# cargo
# set -Ux CARGO_INSTALL "$HOME/.cargo"
# set -px --path PATH "$HOME/.cargo/bin"

# pulumi
set -Ux PULUMI_INSTALL "$HOME/.pulumi"
set -px --path PATH "$HOME/.pulumi/bin"

# moonbit
set -px --path PATH "$HOME/.moon/bin"

# go
set -Ux GOPTH "$HOME/go/bin"
set -px --path PATH "$HOME/go/bin"

# kcl
set -px --path PATH '{install-location}/kclvm/bin'
string match -r "kclvm" "$PATH" >/dev/null
or set -gx PATH "$profile_install_dir/bin" $PATH
string match -r "kclvm" "$PATH" >/dev/null
or set -gx PATH "$profile_install_dir/bin" $PATH
string match -r "kclvm" "$PATH" >/dev/null
or set -gx PATH "$profile_install_dir/bin" $PATH
set -gx KUSION_HOME "$HOME/.kusion"

string match -r ".kusion" "$PATH" >/dev/null
or set -gx PATH "$KUSION_HOME/bin" $PATH
[ -f $HOME/.inshellisense/key-bindings.fish ] && source $HOME/.inshellisense/key-bindings.fish

fish_add_path $HOME/.moon/bin

fish_add_path "$HOME/.fvm/bin"
fish_add_path "$HOME/.fluvio/bin"
fish_add_path "$HOME/.dapr/bin"

set -x RUSTUP_UPDATE_ROOT https://rsproxy.cn/rustup
set -x RUSTUP_DIST_SERVER https://rsproxy.cn

#acorn completion fish | source

starship init fish | source
enable_transience
kubecolor completion fish | source
kubectl completion fish | source
k8sgpt completion fish | source
#glasskube completion fish | source
fish_add_path /home/youling/.moon/bin
fish_add_path /home/youling/.bun/bin

string match -r "kclvm" "$PATH" >/dev/null
or set -gx PATH "$profile_install_dir/bin" $PATH

# dapr
set --export PATH "$HOME/.dapr/bin" $PATH
# bun
# add to ~/.config/fish/config.fish
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

# grafbase
set --export PATH /home/youling/.grafbase/bin $PATH

# gateway
set --export PATH /home/youling/.grafbase/bin $PATH

set LANG "zh_CN.UTF-8"
set LC_ALL "zh_CN.UTF-8"
set LC_CTYPE "zh_CN.UTF-8"

# Added by microsandbox installer
set -gx PATH /home/youling/.local/bin $PATH
set -gx LD_LIBRARY_PATH /home/youling/.local/lib $LD_LIBRARY_PATH
